﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.BLL.ViewModel;
using OFB.Domain;

namespace OFB.BLL.Repository
{
    public interface IHistoryFeedbackBLL
    {
        ICollection<TraineeHistoryFeedbackViewModel> FindAllHistoryFeedback(string traineeId);
        ICollection<TraineeHistoryFeedbackViewModel> FindAllHistoryFeedbackPage(string traineeId, int startRow, int maxRow, out int totalRow);
        TraineeHistoryFeedbackViewModel SearchByFbDetailId(int fbDetailId);
        ICollection<QuestionAnswerViewModel> ViewFeedbackAnswerDetail(string traineeId, int courseId, int fbDetailId);
        FeedbackAnswer GetAdditionalComment(int fbDetailId);
        HistoryFeedbackTraineeCourseViewModel GetTraineeCourse(string username);
        bool SaveFeedbackDetail(int detailId, int questionId, double mark, string comment);
        bool SaveFeedbackComment(int detailId, string comment);
        bool Submit(int detailId, int questionId, double mark, string comment);
    }
}
